<?php
	require_once(dirname(__FILE__)."/include/register_data.php");
?>
<!DOCTYPE html>
<html>
<head>
	<title>注册</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="css/common.css" />
	<script language="javascript" type="text/javascript" src="js/register_func.js"> </script>
	<style rel="stylesheet" type="text/css">
		.tag1{ width:20%;text-align:right;padding-right:30px}
		.tag2{ width:50%;text-align:left}
	</style>
</head>
<body>
<table align="center" style="width:<?php echo $width;?>" >
	<tr>
		<td><?php require_once("header.php");?></td>
	</tr>
	<tr>
		<td>
			<form enctype="multipart/form-data" action="#"  method="post" onsubmit="return CheckValid();">
				<table align="center" style="width:60%;padding-bottom:50px" border="0">
					<tr>
						<td colspan="2" style="text-align:center;padding-bottom:20px">
							<h2>注册新用户</h2>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align:center;color:red"></td>
					</tr>
					<tr>
						<td class="tag1">账号:</td>
						<td>
							<input type="text" id="username" name="username" class="tag2" required="required" /><br />
							<span style="color:red;font-size:12px">*[数字和字母, 区分大小写，最大64个字符]</span>
						</td>
					</tr>
					<tr>
						<td class="tag1">密码:</td>
						<td>
							<input type="password" id="password" name="password" class="tag2" required="required" />
							<span style="color:red;font-size:12px">*[数字和字母]</span>
						</td>
					</tr>
					<tr>
						<td class="tag1">确认:</td>
						<td>
							<input type="password" id="confirm" name="confirm" class="tag2" required="required" />
							<span style="color:red;font-size:12px">*[数字和字母]</span>
						</td>
					</tr>
					<tr>
						<td class="tag1">姓名:</td>
						<td>
							<input type="text" id="nickname" name="nickname" class="tag2" required="required" />
							<span style="color:red;font-size:12px">*[最大64个字]</span>
						</td>
					</tr>
					<tr>
						<td class="tag1">性别:</td>
						<td class="tag2">
							<select name="sex" >
								<option>男</option>
								<option>女</option>
								<option>秘密</option>
							</select>
							<span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td class="tag1">学校:</td>
						<td>
							<input type="text" name="school" class="tag2" />
							<span style="color:red;font-size:12px">[最大128个字]</span>
						</td>
					</tr>
					<tr>
						<td class="tag1">邮箱:</td>
						<td>
							<input type="email" id="email" name="email" class="tag2" />
						</td>
					</tr>
					<tr>
						<td></td>
						<td style="color:red;font-size:12px">[照片格式只能为jpg/gif/png/bmp,大小不能超过5M]</td>
					</tr>
					<tr>
						<td class="tag1">照片:</td>
						<td>
							<input type="hidden" name="MAX_FILE_SIZE" value="5242880"/>
							<input type="file" name="imagefile" value="选择照片" class="tag2" />
						</td>
					</tr>
					<tr>
						<td class="tag1" valign="top">个人介绍:</td>
						<td>
							<textarea cols="1" rows="1" style="width:300px;height:150px" name="intra"></textarea>
							<p style="color:red;font-size:12px">[最大10000个字]</p>
						</td>
					</tr>
					<tr>
						<td class="tag1"></td>
						<td class="tag2">
							<input type="submit" name="reg" value="提交" />
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr>
		<td>
			<?php require_once("footer.php");?></td>
	</tr>
</table>
</body>
</html>
